package demo.spring.aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @Author: tyzhang
 * @Description:
 * @Date: Created in 22:56 2018/1/30
 */
public class TestAop {
    @Test
    public void test(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        Book book=applicationContext.getBean(Book.class);
        Book.add();
    }
}
